<template>
  <div id="app">
    <!-- <nav>
      <router-link to="/">Home</router-link> |
      <router-link to="/about">About</router-link>
    </nav> -->
    <router-view/>
  </div>
</template>
<script>

import { getMqttInfo } from '@/utils/auth'
import { mqttConnection } from '@/utils/mqttClient'
  export default{
    name:"App",
    components:{
    
    },

created(){
    
   //在页面加载时读取sessionStorage里的状态信息
   if (getMqttInfo()) {
    
    mqttConnection(getMqttInfo())
    };
  }
  }
</script>
<style>
body,dd,dl,fieldset,form,h1,h2,h3,h4,h5,h6,input,legend,ol,p,select,td,textarea,th,ul{margin:0;padding:0;}
body{background:#fff;font:12px SimSun,"Arial Narrow",HELVETICA;-webkit-text-size-adjust:100%;}
a{color:#172c45;text-decoration:none;}
a:hover{color:#cd0200;text-decoration:underline;}
em{font-style:normal;}
li{list-style:none;}
img{border:0;vertical-align:middle;}
table{border-collapse:collapse;border-spacing:0;}
p{word-wrap:break-word;}
</style>
